package com.zhongyw.mvt.gis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongyw.mvt.gis.entity.ShapefileInfo;
import com.zhongyw.mvt.gis.entity.VectorTile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhong
 */
@Mapper
public interface ShapefileMapper extends BaseMapper<ShapefileInfo> {
    List<Map<String,  Object>> getIntersection(@Param("layer1") String layer1, @Param("layer2") String layer2);

    List<Map<String, Object>> nearestNeighbor(@Param("layer") String layer, @Param("geoJson") String geoJson);

    String shortestPath(@Param("startCoords") double[] startCoords, @Param("endCoords") double[] endCoords);
}
